Passed
Push — master ( 2a550f...39419e )
by Zhenyu
01:34
created

renderer.js ➔ ... ➔ render   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
nc 1
dl 0
loc 4
rs 10
c 1
b 0
f 1
nop 1
1
/* istanbul ignore next */
2
const enhancedRender = (req, res, next) => {
3
	const originalRender = res.render;
4
	res.render = function render(...args) {
5
		originalRender.apply(this, args);
6
		res.rendered = true;
7
	};
8
	next();
9
};
10
11
export default enhancedRender;
12